<!--
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2021-12-03 11:10:14
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-03-04 14:37:19
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\update-price\\update-price.component.html
 * Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<div class="mb-lg">
  <sf *ngIf="i" #sf mode="edit" [schema]="schema" [ui]="ui" [formData]="i" button="none">
    <ng-template sf-template="freightPrice" let-me let-ui="ui" let-schema="schema">
      <nz-input-group [nzAddOnAfter]="freightType[i?.freightType]">
        <input [max]="99999999" placeholder="请输入" type="number" [ngModel]="me.value" (ngModelChange)="me.setValue($event)" nz-input />
      </nz-input-group>
    </ng-template>
    <div class="modal-footer text-center">
      <button nz-button type="button" (click)="close()">取消</button>
      <button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!sf.valid" [nzLoading]="service.http.loading"
        >确定</button
      >
    </div>
  </sf>
</div>
<div>
  <h4>变更日志</h4>
  <st #st [data]="service.$api_getOperationLogRecordsList" [columns]="columns"
  [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams}"
  [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
  [page]="{}"
  >
  <ng-template st-row="operator" let-item>
    {{item?.operator}}/{{item.telephone}}
  </ng-template>
</st>
</div>
<ng-template #addOnAfterTemplate>
  <span> {{ freightType[i?.freightType] }}</span>
</ng-template>
